<template>
	<view class="wrapper">
		<view class="bg">
		</view>
		<view class="top">
			<view class="title">
				<view class="text">
					商品信息
				</view>
				<view class="yellow">
				</view>
			</view>
			<view class="item">
				<view class="label">
					物品名称
				</view>
				<view class="data">
					{{packageDetail.name}}
				</view>
			</view>
			<view class="item">
				<view class="label">
					物品价值
				</view>
				<view class="data red">
					￥{{packageDetail.price}}
				</view>
			</view>
			<view class="item">
				<view class="label">
					商品类型
				</view>
				<view class="data">
					{{packageDetail.goodstype}}
				</view>
			</view>
			<view class="item ">
				<view class="label">
					商品数量
				</view>
				<view class="data">
					{{packageDetail.num}}
				</view>
			</view>
			<view class="item borderNone">
				<view class="label">
					商品备注
				</view>
				<view class="data">
					{{packageDetail.remark}}
				</view>
			</view>
		</view>
		<view class="top">
			<view class="title">
				<view class="text">
					包裹信息
				</view>
				<view class="yellow">
				</view>
			</view>
			<view class="item">
				<view class="label">
					快递公司
				</view>
				<view class="data">
					{{packageDetail.express}}
				</view>
			</view>
			<view class="item">
				<view class="label">
					快递单号
				</view>
				<view class="data">
					{{packageDetail.express_sn}}
				</view>
			</view>
			<view class="item">
				<view class="label">
					物品价值
				</view>
				<view class="data">
					迪拜
				</view>
			</view>
			<view class="item ">
				<view class="label">
					寄往仓库
				</view>
				<view class="data">
					寄往仓库（广州）
				</view>
			</view>
			<view class="item borderNone">
				<view class="label">
					提交时间
				</view>
				<view class="data">
					{{packageDetail.time}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				packageDetail:{}
			}
		},
		onLoad(option) {
			let {index}=option;
			let packageList=uni.getStorageSync("packageList")
			this.packageDetail=packageList[index]
			console.log(this.packageDetail)
		},
		methods: {
			
		}
	}
</script>

<style scoped>
.bg{
	position: fixed;
	background-color: #f1f1f1;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: -1;
}
.wrapper{
	padding: 0 30rpx;
}
.top{
	background-color: #FFFFFF;	
	margin-top: 20rpx;
	padding: 0rpx 30rpx;
	border-radius: 10rpx;
}
.title{
	position: relative;
	display: flex;
	align-items: center;
	padding: 20rpx 0;
	border-bottom:1rpx solid rgba(151,151,151,0.2);
}
.item{
	display: flex;
	justify-content: space-between;
	border-bottom:1rpx solid rgba(151,151,151,0.2);
	padding: 20rpx 0;
}
.title .text{
	font-size: 30rpx;
	font-family: PingFang SC;
	font-weight: 600;
	color: #333333;
}
.label{
	font-size: 24rpx;
	font-family: PingFang SC;
	font-weight: 400;
	color: #666666;
}
.data{
	font-size: 24rpx;
	font-family: PingFang SC;
	font-weight: 400;
	color: #333333;
}
.yellow{
	position: absolute;
	left: -15rpx;
	width: 6rpx;
	height: 26rpx;
	background: #F7CC46;
	border-radius: 3rpx;
}
.red{
	font-weight: 500;
	color: #CA2929;
}
.borderNone{
	border-bottom: none;
}
</style>
